package com.xmy.cultivate.service.impl;

import com.xmy.cultivate.entity.BookTextSubjects;
import com.xmy.cultivate.mapper.BookTextSubjectsMapper;
import com.xmy.cultivate.service.IBookTextSubjectsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 书对应的科目 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2025-06-04
 */
@Service
public class BookTextSubjectsServiceImpl extends ServiceImpl<BookTextSubjectsMapper, BookTextSubjects> implements IBookTextSubjectsService {

    @Autowired
    BookTextSubjectsMapper bookTextSubjectsMapper;

    @Override
    public String getSubjectsIdByBookTextId(Long bookId) {
        return bookTextSubjectsMapper.getSubjectsIdByBookTextId(bookId);
    }

}
